package com.shungen.apicloud.utils;

import cn.hutool.core.util.RandomUtil;


/**
 * 生成accessKey和secretKey的工具类
 */
public class AccessKeyGenerator {

    private static final int ACCESS_KEY_LENGTH = 16; // Access Key长度
    private static final int SECRET_KEY_LENGTH = 64; // Secret Key长度

    public static void main(String[] args) {
        String accessKey = generateAccessKey();
        String secretKey = generateSecretKey();

        System.out.println("Access Key: " + accessKey);
        System.out.println("Secret Key: " + secretKey);
    }

    public static String generateAccessKey() {
        return RandomUtil.randomString(ACCESS_KEY_LENGTH);
    }

    public static String generateSecretKey() {
        return RandomUtil.randomString(SECRET_KEY_LENGTH);
    }
}
